// Allows transparent serial communication between PC USB port and WiFi module's serial port.
// Use this to configure and test the module with the Serial Monitor. Make sure power is on.

void setup()
{
  Serial.begin(115200);
  while(!Serial);  // wait for usb serial to be available
  Serial1.begin(115200);  // start connection to the wifi module
}

void loop()
{
 if(Serial.available())  // send data from each port out the other one.
  Serial1.write(Serial.read());
 if(Serial1.available())
  Serial.write(Serial1.read()); 
}
